<template>
    <div @click="testFun">
        Hello 啊在干嘛呢ym
    </div>
</template>
<script>
    export default {
        setup() {
            const testFun = () => {
                console.log('干嘛呢');
                alert('在干嘛呢')
            }
            return {
                testFun
            }
        }
    }
</script>
<style>
    div {
        color: aqua;
    }
</style>